from time import sleep
from selenium import webdriver
# 1.打开浏览器
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome(executable_path='chromedriver.exe')
# driver = webdriver.Chrome() #创建浏览器对象
# 2.输入访问地址（URL）
driver.implicitly_wait(3)
driver.get("http://121.43.169.97:8848/pageA.html")

driver.maximize_window()
driver.find_element_by_css_selector("#user").send_keys("admin")
sleep(3)
driver.quit()
